package com.onetime.mall.trading.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 订单表
 * 
 * @author liyixuan
 * @email liyixuan106@163.com
 * @date 2022-03-26 19:38:29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sh_order")
public class OrderEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 自增主键
	 */
	@TableId
	private Long id;
	/**
	 * 订单编号
	 */
	private String orderNumber;
	/**
	 * 用户主键id
	 */
	private Long userId;
	/**
	 * 闲置物品主键id
	 */
	private Long idleId;
	/**
	 * 订单总价
	 */
	private BigDecimal orderPrice;
	/**
	 * 支付状态
	 */
	private Integer paymentStatus;
	/**
	 * 支付方式
	 */
	private String paymentWay;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 支付时间
	 */
	private Date paymentTime;
	/**
	 * 订单状态
	 */
	private Integer orderStatus;
	/**
	 * 是否删除
	 */
	private Integer isDeleted;

}
